﻿namespace NEnsure.Rules
{
	public class UrlPartRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "Url-Part Rule"; }
		}

		public UrlPartRule()
			: base(@"^[a-zA-Z0-9\-_.]*$", "{value} is not a valid url part; it can only contain letters [a-ZA-Z], digits [0-9], underscores [_], dashes[-], or periods [.]")
		{

		}
	}
}
